package com.wobangkj.common.service;

import com.wobangkj.common.model.crud.UserDe;
import com.wobangkj.common.model.crud.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    Object search(Map<String, Object> params, User user);

    Object id(Long id);

    Object update(User user);

    Object create(User user);

    Object delete(Long id);

    Object idDe(Long id);
    Object searchDe(Map<String, Object> params, UserDe user);

    /**
     * jpa原生sql查询
     */
    Object getShopByName(String name, Integer clientPage, Integer everyPage);

    List<User> findByNameLike(String name);

    User getByOpenid(String openid);

    List<User> getskeyByOpenid(String openid);

    Long[] findMyJob(String id);

    Long[] findMyShare(String id);

    List<Map> jobIdList(Long id);

    List<Map> shareIdList(Long id);
}
